package org.micode.demo.biz.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

@Data
@NoArgsConstructor
public class MenuVO<T> {

    private Long userId;

    /**
     * 用户的菜单列表
     */
    private List<T> menuList;

    /**
     * 用户的权限列表
     */
    private Set<String> permissions;

    public MenuVO(List<T> menuList, Set<String> permissions) {
        this.menuList = menuList;
        this.permissions = permissions;
    }
}
